package tech.aistar.service.position.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Province;
import tech.aistar.mapper.position.ProvinceMapper;
import tech.aistar.service.position.IProvinceService;

import java.util.List;

/**
 * @Author: lya
 * @Description: 本类的作用描述:
 * @CreateDate: 2019/10/3
 * @Version: 1.0
 */
@Service
public class ProvinceServiceImpl implements IProvinceService{
    @Autowired
    private ProvinceMapper provinceMapper;

    @Override
    public List<Province> findAll() {
        List<Province> list = provinceMapper.findAll();
        return list;
    }

    @Override
    public Province findById(Integer id) {
        Province province = provinceMapper.findById(id);
        return province;
    }
}
